﻿@using FwProject.Restaurant.Dto
@using FwProject.Core.Restaurant
@model RestaurantTypeNumberInput
@{
    Layout = null;
}
<div class="modal-dialog">
    <div class="modal-content animated fadeIn">
        <form class="form-horizontal" action="/RestaurantTypeNumber/CreateTypeNumber" method="post" novalidate="novalidate" data-ajax="true" data-ajax-success="ReloadAjaxCallbackgoback" data-ajax-failure="FailureAjaxCallback" data-ajax-method="Post" role="form">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title">添加配送货品型号</h4>
            </div>
            <div class="modal-body">
                <div class="form-body">
                    @Html.AntiForgeryToken()
                    @Html.TextBoxFor(o => o.Restaurantid, new { @class = "hidden" })
                    @Html.TextBoxFor(o => o.FactoryinfoId, new { @class = "hidden" })
                    <div class="form-group">
                        @Html.LabelFor(o => o.TypeNumberId, new { @class = "control-label col-md-3" })
                        <div class="col-md-6">
                            @Html.DropDownListFor(o => o.TypeNumberId, ViewBag.TypeNumber as IEnumerable<SelectListItem>, new { @class = "form-control" })
                            @Html.ValidationMessageFor(o => o.TypeNumberId)
                        </div>
                    </div>
                    <div class="form-group">
                        @Html.LabelFor(o => o.Price, new { @class = "control-label col-md-3" })
                        <div class="col-md-6">
                            <div class="input-group">
                                <div class="input-group-addon">￥</div>
                                @Html.TextBoxFor(o => o.Price, new { @class = "form-control" })
                                @Html.ValidationMessageFor(o => o.Price)
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="reset" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="submit" class="btn btn-primary" data-loading-text="执行中...">保存</button>
            </div>
        </form>
    </div>
    <!-- /.modal-content -->
</div>

